package com.wkbb.common.enums;

public enum PayOnlineTypeEnum {

    /**
     * JSAPI支付
     */
    JSAPI(1,"JSAPI"),
    /**
     * NATIVE
     */
    NATIVE(2,"NATIVE"),
    /**
     * APP
     */
    APP(3,"APP");


    private PayOnlineTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (PayOnlineTypeEnum payTypeEnum : PayOnlineTypeEnum.values()) {
            if (payTypeEnum.getValue().intValue()==value) {
                return payTypeEnum.getDesc();
            }
        }
        return null;
    }
}
